/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.weed.net.listener;

import java.util.EventObject;

/**
 *
 * @author ibmsz
 */
public class SourceEvent extends EventObject {

    public final static int HANDLE_BEFORE = -1;//准备就绪开始连接前
    public final static int HANDLE = 0;//数据发出后等着回报
    public final static int HANDLE_AFTER = 1;//回报结束后调用
    protected int states = -1;

    public SourceEvent(Object source,int states){
        super(source);
        setStates(states);
    }

    /**
     * @return the states
     */
    public int getStates() {
        return states;
    }

    /**
     * @param states the states to set
     */
    public void setStates(int states) {
        this.states = states;
    }

  

}
